import type { PaginationType, PaginationQueryResponseType } from './common'
import { SECTOR_DICT } from '@/constants/biz'

export type QueryTalentsPayloadType = {
  name?: string
} & PaginationType

export type TalentItemType = {
  id: string
  name: string
  fileName: string
  etag: string
  phoneNumber: string
  company: string
  jobTitle: string
  sector: keyof typeof SECTOR_DICT
  createdAt: string
  updatedAt: string
}

export type QueryTalentsResponseType = PaginationQueryResponseType<TalentItemType>

export type CreateTalentPayloadType = {
  name: string
  fileName: string
  etag: string
  phoneNumber: string
  company: string
  jobTitle: string
  sector: keyof typeof SECTOR_DICT
}

export type UpdateTalentPayloadType = CreateTalentPayloadType & { id: string }
